﻿namespace DimensionsHelper.LanguageService.Syntax;

public class VariableDeclaration : Declaration
{
    internal VariableDeclaration(Identifier name, SyntaxNode? parent) :
        base(SyntaxKinds.VariableDeclaration, SyntaxToken.Default, name, parent)
    {
    }

    protected VariableDeclaration(SyntaxKinds kind, Identifier name, SyntaxNode? parent)
        : base(kind, SyntaxToken.Default, name, parent)
    {
    }


    protected override bool WithoutDeclareKeywordToken => true;
}


public static partial class NodeFactory
{
    public static VariableDeclaration CreateVariableDeclaration(SyntaxNode? parent, Identifier identifierName)
    {
        return new VariableDeclaration(identifierName, parent);
    }
}